package oop第三章作业;

public class Book {
    String  bookName;
    int totalPages;
    public  void  details( String  bookName,int totalPages){
        this.bookName=bookName;
        this.totalPages=totalPages;
        if (this.totalPages<200){
            this.totalPages=200;
        }
        System.out.println(this.totalPages);
    }
    public static void main(String[] args) {
        Book book =new Book();
        book.details("斗罗大陆",120);
    }
}
